﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Avalonia;
using FluentAvalonia.UI.Controls;

namespace MusicFluent.Controls;

public static class MusicDialog
{
    public static async Task ShowMusicDialog(object context, Visual visual, List<TaskDialogButton> buttons = null!,
        string header = null!)
    {
        var music = new TaskDialog()
        {
            Title = "MusicFluent",
            Header = header,
            MaxHeight = 450,
            Content = context,
            FooterVisibility = TaskDialogFooterVisibility.Never,
            Buttons = buttons,
            XamlRoot = visual
        };
        await music.ShowAsync();
    }
}